package mhl.domain;
/*CREATE TABLE bill(
        Id INT PRIMARY KEY AUTO_INCREMENT,#账单编号
        billId VARCHAR(50) NOT NULL DEFAULT '',#账单号，UUId随机获取
        menuId INT NOT NULL DEFAULT 0,#菜的名字
        Nums INT NOT NULL DEFAULT 0,#菜的数量
        Price DOUBLE NOT NULL DEFAULT 0,
        diningTableId INT NOT NULL DEFAULT 0,
        bTime DATETIME NOT NULL,#结账时间
        bState VARCHAR(50) NOT NULL DEFAULT '' #账单状态：0未结账，1现金2支付宝3微信...
        );*/

import java.util.Date;

public class Bill {
    private Integer Id;
    private String billId;
    private int menuId;
    private int Nums;
    private double Price;
    private int diningTableId;
    private Date bTime;
    private  String bState;
    public Bill(){}

    public Bill(Integer id, String billId, int menuId, int nums, double price, int diningTableId, Date bTime, String bState) {
        Id = id;
        this.billId = billId;
        this.menuId = menuId;
        Nums = nums;
        Price = price;
        this.diningTableId = diningTableId;
        this.bTime = bTime;
        this.bState = bState;
    }

    public Integer getId() {
        return Id;
    }

    public void setId(Integer id) {
        Id = id;
    }

    public String getBillId() {
        return billId;
    }

    public void setBillId(String billId) {
        this.billId = billId;
    }

    public int getMenuId() {
        return menuId;
    }

    public void setMenuId(int menuId) {
        this.menuId = menuId;
    }

    public int getNums() {
        return Nums;
    }

    public void setNums(int nums) {
        Nums = nums;
    }

    public double getPrice() {
        return Price;
    }

    public void setPrice(double price) {
        Price = price;
    }

    public int getDiningTableId() {
        return diningTableId;
    }

    public void setDiningTableId(int diningTableId) {
        this.diningTableId = diningTableId;
    }

    public Date getbTime() {
        return bTime;
    }

    public void setbTime(Date bTime) {
        this.bTime = bTime;
    }

    public String getbState() {
        return bState;
    }

    public void setbState(String bState) {
        this.bState = bState;
    }

    @Override
    public String toString() {
        return "\n"+Id +
                "\t\t" + menuId +
                "\t\t\t" + Nums +
                "\t\t\t" + Price +
                "\t\t" + diningTableId +
                "\t\t" + bTime +
                "\t\t" + bState;
    }
}
